package com.atguigu.util.method_fa;

/**
 * @author caesar
 * @date 2025/7/7
 * @Description:
 * @apiNote
 */
public class Employee {
    private String name;
    private String employeeId;

    public Employee() {
    }

    public Employee(String name, String employeeId) {
        this.name = name;
        this.employeeId = employeeId;
    }

    // Getter 和 Setter
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public void work() {
        System.out.println("员工正在工作");
    }

    @Override
    public String toString() {
        return "姓名: " + name + ", 员工编号: " + employeeId;
    }
}
